package com.zsy.springframework.beans.facotry.jiekou.one;

import com.zsy.springframework.beans.facotry.exception.BeansException;
import com.zsy.springframework.resourceloader.jiekou.Resource;
import com.zsy.springframework.resourceloader.jiekou.ResourceLoader;

//顶级接口，负责处理从资源中加载的beandefinition的信息
public interface BeanDefinitionReader {
    //两个功能
    //得用到beandefinition 的registry接口的内容
    //从资源中加载bean,可以是多个资源多个路径获取资源
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String path) throws BeansException;

    void loadBeanDefinitions(String... paths) throws BeansException;
}
